Skip to content

Instantly share code, notes, and snippets.

@hsiboy
hsiboy / The_Xmas_Star_Full.ino
Last active December 1, 2026 06:33
Fastled 3.1 powered Christmas Star
# video here https://youtu.be/z-YouCxMs18
#include "FastLED.h"
// Based on MarqueeOverlay
// Mark Kriegsman, August 2015.
// The star is constructed from a metal frame, with two concentric 5 point stars.
// The outer star carries 8 LEDs per arm
// The inner carries 4

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@zimmermann-io4
zimmermann-io4 / ssh_config
Created December 1, 2026 06:06
SSH config keepalive
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
@whjin
whjin / one-shell-script-three-operating-systems-what-actually-breaks.md
Created December 1, 2026 05:34
One Shell Script, Three Operating Systems: What Actually Breaks — wuhuajin.com

One Shell Script, Three Operating Systems: What Actually Breaks

The first bug report was one sentence long: "deploy doesn't work on my machine". The person reporting it was on Windows, had cloned the repository, and double-clicked the file the README told them to double-click. It opened a console window, printed two lines, and closed. On my MacBook the same file worked every day.

The script itself was fine. Everything around it was written for exactly one operating system, and nobody noticed because everyone who wrote it used the same one.

The failure was in the file, not the code

The second time it happened the error was visible, because the window stayed open long enough to read:

@std-microblock
std-microblock / main.md
Last active December 1, 2026 06:26
关于"小米反诈监控"传闻的技术核验

结论

传闻中"系统内置反诈数据库、记录截屏时间与通话、屏幕共享行为"这部分属实;"域名用途"部分与实际不符;"GuardProvider 静默录屏"在部分机型上属实;"关掉开关仍在运行""卸载 GuardProvider 无效"属实;"669 次连续读写""每台手机都在录"不成立。


一、功能名称与开关位置

传闻描述的行为属于手机管家中的"电诈防护",不是独立的后台程序。

@JiayinCao
JiayinCao / tiny_fiber.h
Last active December 1, 2026 06:24
Tiny Fiber ( A razor thin cross platform fiber library )
/*
MIT License
Copyright (c) 2023 Jiayin Cao
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@mcxiaoke
mcxiaoke / HyperOS3_Debloat_Guide.md
Last active December 1, 2026 06:20
xiaomihyperos system 小米 HyperOS 通用 ADB 精简与去广告/遥测命令清单(全量含说明)

小米 HyperOS 通用 ADB 精简与去广告/遥测命令清单(全量含说明)

适用机型:小米 / Redmi 全系(运行 HyperOS 1.0 / 2.0 / 3.0,Android 14 / 15 / 16)
核心机制:在 HyperOS 系统中,系统应用受系统级保护已无法使用 disable-user,统一使用用户级安全卸载命令 pm uninstall -k --user 0。该卸载仅作用于当前用户空间,底层 ROM 原包保持完整,随时可通过命令秒级恢复。


目录

  1. 使用前必读与恢复指南
  2. 【红线禁区】绝对不能卸载的组件(防卡米/崩溃)
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0